package com.ruoyi.comment.mapper;

import java.util.List;
import com.ruoyi.comment.domain.TComment;

/**
 * commentMapper接口
 * 
 * @author ruoyi
 * @date 2023-11-17
 */
public interface TCommentMapper 
{
    /**
     * 查询comment
     * 
     * @param id comment主键
     * @return comment
     */
    public TComment selectTCommentById(Long id);

    /**
     * 查询comment列表
     * 
     * @param tComment comment
     * @return comment集合
     */
    public List<TComment> selectTCommentList(TComment tComment);

    /**
     * 新增comment
     * 
     * @param tComment comment
     * @return 结果
     */
    public int insertTComment(TComment tComment);

    /**
     * 修改comment
     * 
     * @param tComment comment
     * @return 结果
     */
    public int updateTComment(TComment tComment);

    /**
     * 删除comment
     * 
     * @param id comment主键
     * @return 结果
     */
    public int deleteTCommentById(Long id);

    /**
     * 批量删除comment
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTCommentByIds(Long[] ids);
}
